package com.bw.zg3park2212.park

import androidx.lifecycle.MutableLiveData
import com.bw.base.entity.ParkAddParam
import com.bw.base.entity.ParkTypeEntityItem
import com.bw.base.mvvm.BaseViewModel
import com.bw.base.net.ApiService
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
@HiltViewModel
class ParkAddViewModle@Inject constructor(val apiService: ApiService):BaseViewModel() {
    val parkSuccse=MutableLiveData<ParkTypeEntityItem>()
    fun addPark(parkAddParam: ParkAddParam){
        httpRequst(
            {apiService.addPark(parkAddParam)},
            parkSuccse::postValue
        )
    }
}